﻿#pragma once

#include <QtWidgets/QMainWindow>
#include <QVTKOpenGLNativeWidget.h>
#include <string>
#include <vector>
#include <QFile>

class ReadPointText : public QMainWindow
{
    Q_OBJECT

public:
    ReadPointText(QWidget *parent = nullptr);
    ~ReadPointText();
    struct Point3D
    {
        double x, y, z;
        // 构造函数
        Point3D(double x, double y, double z) : x(x), y(y), z(z) {}

        // 列表初始化
        Point3D(std::initializer_list<double> init)
            : x(init.begin()[0]), y(init.begin()[1]), z(init.begin()[2]) {}
    };
	std::vector<Point3D> read_point_data(std::string filename);
private:
    QVTKOpenGLNativeWidget* vtkWidget;
};
